import 'package:flutter/material.dart';

class ScaffoldItem extends StatelessWidget {
  final String title;

  final Widget bodyPage;

  ScaffoldItem(this.title, this.bodyPage);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
        centerTitle: true,
      ),
      body: bodyPage,
    );
  }
}
